package com.youjia.center.boot.data.mp.basic.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author fengjiansong
 * @date 2022/9/28 15:40
 */
@Data
public class PagedListDto<T> implements Serializable {
    private Long total;
    private List<T> list;
    private Integer pageIndex;
    private Integer pageSize;

    public PagedListDto(Long total, Integer pageSize, Integer pageIndex, List<T> list) {
        this.total = total;
        this.pageSize = pageSize;
        this.list = list;
        this.pageIndex = pageIndex;
    }
}
